package com.ccn.crm.mapper;

import com.ccn.crm.model.AfterSales;
import com.ccn.crm.model.BeforeWorking;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BeforeWorkingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BeforeWorking record);

    BeforeWorking selectByPrimaryKey(Integer id);
    BeforeWorking selectByCrmId(String crmid);

    List<BeforeWorking> selectAll();

    int updateByPrimaryKey(BeforeWorking record);

    BeforeWorking selectConsumedByName(String timebelongs);
    BeforeWorking selectLastWeekConsumedByName(String timebelongs);
}